﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LpbPrj.Client.Patients
{
    public class Patient : Entity, IFullAudited
    {
        [Required]
        [MaxLength(30)]
        public string PatientName { get; set; }
        [Column(TypeName = "datetime2")]
        public DateTime? PatientBirthday { get; set; }
        public SexState PatientSex { get; set; }
        [MaxLength(30)]
        public string PatientPhone { get; set; }
        [MaxLength(1024)]
        public string PatientAddress { get; set; }
        [MaxLength(1024)]
        public string Description { get; set; }
        [MaxLength(1024)]
        public string Disease { get; set; }
        [MaxLength(1024)]
        public string Remarks { get; set; }


        [MaxLength(1024)]
        public string Cause { get; set; }//送检原因
        [MaxLength(1024)]
        public string Doctor { get; set; }//送检医生
        [MaxLength(1024)]
        public string Operator { get; set; }//检查员
        [MaxLength(1024)]
        public string CaseID { get; set; }//病例号
        [MaxLength(1024)]
        public string ShowID { get; set; }//展示的Id，带有日期的

        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get; set; }
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        public long? DeleterUserId { get; set; }
        public DateTime? DeletionTime { get; set; }
        public bool IsDeleted { get; set; }

    }


    public enum SexState : byte
    {
        Female = 0,

        Male = 1,

        Null = 2
    }

}
